package com.exsun.ex1077.ui.activity.login

import android.os.Bundle
import android.os.CountDownTimer
import com.exsun.ex1077.databinding.ActivityRegisterSuccessBinding
import com.exsun.ex1077.ui.activity.device.DeviceAddActivity
import com.exsun.ex1077.ui.activity.main.MainActivity
import com.zhangping.fastjetpack.base.BaseActivity
import com.zhangping.fastjetpack.base.BaseViewModel
import com.zhangping.fastjetpack.extend.toActivity
import kotlinx.android.synthetic.main.activity_register_success.*

/**
 * 描述：注册成功
 * 作者：ZhangPing
 * 创建时间：2023/3/17 14:44
 */
class RegisterSuccessActivity: BaseActivity<BaseViewModel, ActivityRegisterSuccessBinding>() {

    override fun enableDoubleBackExit() = true

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        login.setOnClickListener {
            toActivity<MainActivity>(finish = true)
        }
        addDevice.setOnClickListener {
            toActivity<MainActivity>(Bundle().apply {
                putBoolean("toAddDevicePage", true)
            }, finish = true)
        }
    }

}